﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="searchRecruiter.aspx.cs" Inherits="iResume.searchRecruiter" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .style5
    {
    }
    .style6
    {
        width: 361px;
    }
    .style9
    {
        width: 157px;
    }
    .style10
    {
        width: 88px;
    }
    .style12
    {
        text-align: left;
    }
    .style13
    {
        width: 162px;
        text-align: left;
    }
    .style14
    {
            width: 88px;
            text-align: left;
            font-size: large;
        }
    .style15
    {
        text-align: left;
    }
    .style16
    {
        width: 126px;
    }
    .style17
    {
        width: 151px;
        text-align: left;
    }
    .style18
    {
        width: 151px;
    }
    .style20
    {
        text-align: center;
        width: 103px;
    }
    .style21
    {
        width: 103px;
        text-align: left;
    }
        .style25
        {
            text-align: left;
            width: 35px;
        }
        .style27
        {
            margin-left: 35px;
        }
        .style28
        {
            width: 80px;
        }
        .style29
        {
            text-align: left;
            font-size: x-large;
        }
        .style30
        {
            font-family: "Century Gothic";
        }
        .style31
        {
            font-family: "Century Gothic";
            font-weight: bold;
        }
        .style32
        {
            color: #999999;
        }
        .style33
        {
            width: 157px;
            text-align: left;
            font-family: "Tempus Sans ITC";
        }
        .style34
        {
            text-align: left;
            font-size: medium;
            width: 126px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width: 100%;">
        <tr>
            <td class="style28" rowspan="12">
                <asp:Panel ID="Panel6" runat="server" Height="543px" style="margin-top: 0px" 
                    BackColor="#FFFFCC">
                    <asp:ImageButton ID="ImageButton6" runat="server" ImageUrl="Picture/rs.PNG" 
                        PostBackUrl="~/Loginjobseeker.aspx" />
                    <br />
                    <asp:ImageButton ID="ImageButton7" runat="server" 
    ImageUrl="Picture/contacts.PNG" style="margin-top: 3px" PostBackUrl="~/Jscontact.aspx" 
                        Height="77px" />
                    <br />
                    <br />
                    <br />
                    <asp:HyperLink ID="HyperLink2" runat="server" 
                        NavigateUrl="~/searchRecruiter.aspx">Search Jobs</asp:HyperLink>
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                </asp:Panel>
            </td>
            <td class="style25" rowspan="5">
                &nbsp;</td>
            <td class="style29" colspan="7">
                <span class="style32"><span class="style31">Search</span><span class="style30"> 
                Jobs</span></span><hr />
            </td>
        </tr>
        <tr>
            <td class="style34" style="font-size: 14px; font-family: 'century gothic';">
                Company Name : </td>
            <td class="style17">
                <asp:TextBox ID="TextBox1" runat="server" style="margin-left: 0px" 
                    Width="150px"></asp:TextBox>
            </td>
            <td class="style14" style="font-family: 'century gothic'; font-size: 14px;">
                Pay Range :</td>
            <td class="style33">
                <asp:DropDownList ID="DropDownList2" runat="server" style="margin-left: 0px" 
                    Width="150px">
                    <asp:ListItem>$1000-$3000</asp:ListItem>
                    <asp:ListItem>$3000-$5000</asp:ListItem>
                    <asp:ListItem>$5000-$7000</asp:ListItem>
                    <asp:ListItem>$7000-$10000</asp:ListItem>
                    <asp:ListItem>$10000 &amp; above</asp:ListItem>
                    <asp:ListItem>&gt;$1000</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="style21" style="font-family: 'Century Gothic'; font-size: 14px">
                Job Category : </td>
            <td class="style12">
                <asp:DropDownList ID="DropDownList1" runat="server" style="margin-left: 0px" 
                    Width="150px">
                    <asp:ListItem>Information Technology</asp:ListItem>
                    <asp:ListItem>Engineering</asp:ListItem>
                    <asp:ListItem>Business</asp:ListItem>
                    <asp:ListItem>Applied Science</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="style12">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style16">
                &nbsp;</td>
            <td class="style18">
                &nbsp;</td>
            <td class="style10">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td class="style20">
                &nbsp;</td>
            <td class="style4">
                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="Picture/searchbtnn.PNG" 
                    onclick="ImageButton1_Click" style="margin-left: 32px; margin-top: 4px;" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style5" colspan="7">
                &nbsp;&nbsp;&nbsp;
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" 
                    BorderWidth="1px" CellPadding="2" DataKeyNames="jobID" 
                    DataSourceID="SqlDataSource1" ForeColor="Black" GridLines="None" 
                    onrowcommand="GridView_RowCommand" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" 
                    style="text-align: center" CssClass="style27">
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" />
                        <asp:BoundField DataField="jobID" HeaderText="jobID" 
                            SortExpression="jobID" InsertVisible="False" ReadOnly="True" />
                        <asp:BoundField DataField="email" HeaderText="email" 
                            SortExpression="email" />
                        <asp:BoundField DataField="SalaryRange" HeaderText="SalaryRange" 
                            SortExpression="SalaryRange" />
                        <asp:BoundField DataField="JobPosition" HeaderText="JobPosition" 
                            SortExpression="JobPosition" />
                        <asp:BoundField DataField="category" HeaderText="category" 
                            SortExpression="category" />
                        <asp:BoundField DataField="JobDescription" HeaderText="JobDescription" 
                            SortExpression="JobDescription" />
                        <asp:BoundField DataField="VacancyAvailable" HeaderText="VacancyAvailable" 
                            SortExpression="VacancyAvailable" />
                    </Columns>
                    <FooterStyle BackColor="Tan" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                        HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <SortedAscendingCellStyle BackColor="#FAFAE7" />
                    <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                    <SortedDescendingCellStyle BackColor="#E1DB9C" />
                    <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView>
                &nbsp;<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:iResumeConnectionString %>" 
                    OldValuesParameterFormatString="original_{0}" 
                    
                    SelectCommand="SELECT * FROM [jobPosting] WHERE (([SalaryRange] LIKE '%' + @SalaryRange + '%') AND ([category] LIKE '%' + @category + '%'))">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DropDownList2" DefaultValue="%" Name="SalaryRange" 
                            PropertyName="SelectedValue" Type="String" />
                        <asp:ControlParameter ControlID="DropDownList1" DefaultValue="%" 
                            Name="category" PropertyName="SelectedValue" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style6" colspan="4">
                &nbsp;</td>
            <td class="style4" colspan="2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
